package demo;

public class Test1 {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder("asdf");
        stringBuilder.reverse();  //stringBuilder 逆置是在自己本身上进行逆置
        System.out.println(stringBuilder);

        String ret = stringBuilder.toString();  // stringBuilder对象转换成string



    }
}
